package java3_3;

import java.util.Scanner;

/**
 *14： 求一个正整数 倒转后加上1024的结果.比如 12345倒转后是54321,加上1024，结果是55345.
 */
public class homework14 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个正整数：");
        int sum = 0;
        for (int x=scanner.nextInt();x>0;x = x/10){
            sum = (sum*10)+(x%10);
        }
        System.out.println(sum + 1024);
    }
}
